import React from 'react';
import {hot} from 'react-hot-loader';
import "./App.css";

const App = () => {
  return (
    <div className="App">
      <h1>Hello,World!</h1>
    </div>
  );
}

// export default App ;
export default hot(module)(App) ; //当webpack.config.js中的hot为only时,需要设置